package com.healthcare.client.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 转诊申请
 * </p>
 *
 * @author 新华医院转诊联盟
 * @since 2020-04-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Referral对象", description="转诊申请")
public class Referral implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "医生id")
    private Integer doctorId;

    @ApiModelProperty(value = "科室id")
    private Integer departmentId;

    @ApiModelProperty(value = "预约时间")
    private String appointmentTime;

    @ApiModelProperty(value = "患者详情id")
    private Integer suffererDetailsId;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "门诊类型")
    @TableField("Outpatient_type")
    private Integer outpatientType;

    @ApiModelProperty(value = "申请状态")
    private Integer state;

    @ApiModelProperty(value = "主诉")
    private String chiefComplaint;

    @ApiModelProperty(value = "查体")
    private String physicalExamination;

    @ApiModelProperty(value = "待解问题")
    private String problemToBeSolved;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "拒绝时间")
    private Date refusedTime;

    @ApiModelProperty(value = "成功时间")
    private Date successfulTime;

    @ApiModelProperty(value = "转诊医生")
    private String groupDoctor;

    @ApiModelProperty(value = "转诊时间")
    private Date groupTime;

    @ApiModelProperty(value = "转诊建议")
    private String groupRemark;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @ApiModelProperty(value = "操作人")
    private String operator;

    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    @TableLogic
    @TableField(value = "is_deleted")
    private Boolean isDeleted;
}
